package com.ami12.shopping.service.impl;

import com.sun.javafx.collections.MappingChange;
import org.springframework.beans.factory.annotation.Autowired;

import com.ami12.shopping.mapper.UserMapper;
import com.ami12.shopping.pojo.User;
import com.ami12.shopping.service.UserService;

import java.util.Map;

public class UserServiceImpl implements UserService{
	@Autowired
	private UserMapper userMapper;

	public User selectByPrimaryKey(int id) {
		return userMapper.selectByPrimaryKey(id);
	}

	public String checkLogin(Map<String,String> map){
		return userMapper.checkLogin(map);
	}

	public Boolean insertUser(User user){
        return userMapper.insertUser(user);
    }


}
